<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <!-- <ob_link><a class="btn export" url="{:url('exportWithdrawList')}"><i class="fa fa-download"></i> 导 出</a></ob_link> -->
        </div>
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持用户昵称|提现金额">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('index')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover table-striped">
      <thead>
      <tr>
          <th>用户昵称</th>
          <th>提现金额</th>
          <th>手续费</th>
          <th>实际到账</th>
          <th>申请时间</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.user_nickname}</td>
                  <td>¥{$vo.amount}</td>
                  <td>¥{$vo.fee}</td>
                  <td>¥{$vo.actual_amount}</td>
                  <td>{$vo.create_time}</td>
                  <td>
                      {if condition="$vo.status eq 0"}
                          <span class="label label-warning">待审核</span>
                      {elseif condition="$vo.status eq 1"/}
                          <span class="label label-success">已通过</span>
                      {elseif condition="$vo.status eq 2"/}
                          <span class="label label-danger">已拒绝</span>
                      {else/}
                          <span class="label label-info">处理中</span>
                      {/if}
                  </td>
                  <td class="text-center">
                      <ob_link><a href="{:url('withdrawDetail', array('id' => $vo['id']))}"><span class='badge bg-blue'>查看详情</span></a></ob_link>
                      &nbsp;
                      {if condition="$vo.status eq 0"}
                          <ob_link><a class="confirm ajax-get" href="{:url('withdrawApprove', array('id' => $vo['id']))}"><span class='badge bg-green'>审核通过</span></a></ob_link>
                          &nbsp;
                          <ob_link><a class="confirm ajax-get" href="{:url('withdrawReject', array('id' => $vo['id']))}"><span class='badge bg-red'>审核拒绝</span></a></ob_link>
                      {/if}
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top">{:e(config_value('empty_list_describe', 'Oh! 暂时还没有数据~'))}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()|raw}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
</script>